function loadAll() {
  

            var username=sessionStorage.key(sessionStorage.length);
            

            var list=document.getElementById("list");
            var result="<table border='1'align='center'>";
            result+="<tr><td>用户名</td><td>邮箱</td><td>密码</td><td>注册时间</td></tr>";
            for(var i=0;i<localStorage.length;i++) {
                var sitename = localStorage.key(i);
                var str = localStorage.getItem(sitename);

                if (typeof str === 'string') {
                    var site = JSON.parse(str)
                }
                result += "<tr><td>" + sitename + "</td><td>" + site.email + "</td><td>" + site.password + "</td><td>" + site.timenow +"</td></tr>";
            }
                result+="</table>";
                list.innerHTML=result;


        }
function show()
{

   var url = "https://ali-pm25.showapi.com/pm25-detail?city="+ $("#city").val();
    $.ajax({
        url : url,
        type : "get",
        beforeSend : function(req) {
            req.setRequestHeader("Authorization", "APPCODE e0082bf529d0439ab5122c39522eb1fe");
        },
        dataType : "json",
        
        success : function(data) {
                console.log(data);
                var list = $("#ct").get(0);   
            var show = "<table border='3'>";  
            var i = data.showapi_res_body.pm
            var show = "<table border='3'>";  
            show += "<tr><td>排名</td><td>"+i.num+"</td></tr>"+
            "<td>臭氧1小时平均，μg/m3</td><td>"+i.o3+"</td></tr>"+
            "<td>颗粒物（粒径小于等于2.5μm）1小时平均，μg/m3</td><td>"+i.pm2_5+"</td></tr>"+
            "<td>空气质量指数</td><td>"+i.aqi+"</td></tr>"+
            "<td>空气质量指数类别</td><td>"+i.quality+"</td></tr>";
            
               
           

            show += "</table>";  
               $("#ct").html(show);
                    },
        error : function(e) {
            alert("网络异常，请重试");
        }
    });

}

